Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow importing SamplerV1 and EstimatorV1 (Cherry-pick of #1477) #1478

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

Eric-Arellano
Copy link
Collaborator

Right now, users can't import qiskit_ibm_runtime.SamplerV1 and qiskit_ibm_runtime.EstimatorV1 because we only expose the aliases Sampler and Estimator. That gets in the way of users being explicit about which primitive version they're using.

This also is resulting in the API docs not including the pages for both the V1 and V2 primitives in Qiskit/documentation#973 because we didn't tell autosummary about them.

Right now, users can't import `qiskit_ibm_runtime.SamplerV1` and `qiskit_ibm_runtime.EstimatorV1` because we only expose the aliases `Sampler` and `Estimator`. That gets in the way of users being explicit about which primitive version they're using.

This also is resulting in the API docs not including the pages for both the V1 and V2 primitives in Qiskit/documentation#973 because we didn't tell autosummary about them.
@Eric-Arellano Eric-Arellano requested review from kt474 and jyu00 March 6, 2024 16:31
@coveralls
Copy link

Pull Request Test Coverage Report for Build 8175464133

Details

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 82.284%

Totals Coverage Status
Change from base Build 8175443887: 0.0%
Covered Lines: 5764
Relevant Lines: 7005

💛 - Coveralls

@jyu00
Copy link
Collaborator

jyu00 commented Mar 6, 2024

Isn't this a duplicate of #1477?

@Eric-Arellano Eric-Arellano changed the base branch from main to stable/0.21 March 6, 2024 16:55
@Eric-Arellano
Copy link
Collaborator Author

Oops, I forgot to change the branch. Fixed. Thanks!

@jyu00
Copy link
Collaborator

jyu00 commented Mar 6, 2024

I think this needs to go into 0.21.1 instead of just cherry picked into stable/0.21. cc @kt474

@Eric-Arellano
Copy link
Collaborator Author

@jyu00 we need to cherry-pick to stable/0.21, then you/Kevin will need to make a 0.21.1 release from the stable/0.21 branch after. We can't cherry-pick a PR into a tag since a tag is a single snapshot in time.

@jyu00
Copy link
Collaborator

jyu00 commented Mar 6, 2024

Yes you're right. Sorry it's been too long since I did a patch (or any) release.

@Eric-Arellano
Copy link
Collaborator Author

All good! @jyu00 can you please approve this so we can merge?

@kt474
Copy link
Member

kt474 commented Mar 6, 2024

Thanks @Eric-Arellano! I'll do a patch release today

@kt474 kt474 merged commit a2782f1 into Qiskit:stable/0.21 Mar 6, 2024
20 checks passed
@Eric-Arellano Eric-Arellano deleted the cp-estimator branch March 6, 2024 17:39
@kt474 kt474 added the Changelog: Bugfix Include in the Fixed section of the changelog label Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: Bugfix Include in the Fixed section of the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants